// BRDFInfoDialog.cpp : implementation file
//

#include "../stdafx.h"
#include "../Reflectometry.h"
#include "BRDFInfoDialog.h"
#include "afxdialogex.h"


// CBRDFInfoDialog dialog

IMPLEMENT_DYNAMIC(CBRDFInfoDialog, CDialogEx)

CBRDFInfoDialog::CBRDFInfoDialog(CWnd* pParent /*=NULL*/)
	: CDialogEx(CBRDFInfoDialog::IDD, pParent)
	, m_nSphereSamples(0)
	, m_xRes(0)
	, m_yRes(0)
	, m_xSize(0)
	, m_ySize(0)
	, m_neighbour(0)
{

}

CBRDFInfoDialog::~CBRDFInfoDialog()
{
}

void CBRDFInfoDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_SPHERESAMPLE, m_nSphereSamples);
	DDX_Text(pDX, IDC_EDIT_XRES, m_xRes);
	DDX_Text(pDX, IDC_EDIT_YRES, m_yRes);
	DDX_Text(pDX, IDC_EDIT_XSIZE, m_xSize);
	DDX_Text(pDX, IDC_EDIT_YSIZE, m_ySize);
	DDX_Text(pDX, IDC_EDIT_NEIGHBOUR, m_neighbour);
}


BEGIN_MESSAGE_MAP(CBRDFInfoDialog, CDialogEx)
	ON_BN_CLICKED(IDOK, &CBRDFInfoDialog::OnBnClickedOk)
END_MESSAGE_MAP()


// CBRDFInfoDialog message handlers


void CBRDFInfoDialog::OnBnClickedOk()
{
	UpdateData(TRUE);


	// TODO: Add your control notification handler code here
	CDialogEx::OnOK();
}
